package com.codes.service.impl;

import com.codes.dao.OrderInfoMapper;
import com.codes.model.OrderInfo;
import com.codes.service.OrderInfoSV;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Date 2020/5/27 11:42
 * @Created by peanut
 */
@Service
public class OrderInfoImpl implements OrderInfoSV {

    @Autowired
    private OrderInfoMapper orderInfoMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(OrderInfo record) {
        return 0;
    }

    @Override
    public int insertSelective(OrderInfo record) {
        return 0;
    }

    @Override
    public int insertByMap(Map<String, Object> map) {
        return orderInfoMapper.insertByMap(map);
    }

    @Override
    public OrderInfo selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(OrderInfo record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(OrderInfo record) {
        return 0;
    }

    @Override
    public List<Map<String,Object>> selectByOrderId(Map<String, Object> map) {
        return orderInfoMapper.selectByOrderId(map);
    }

    @Override
    public int deleteByWrokOrderId(Integer wrokOrderId) {
        return orderInfoMapper.deleteByWrokOrderId(wrokOrderId);
    }

    @Override
    public int deleteByLogisticsId(Integer wrokOrderId) {
        return orderInfoMapper.deleteByLogisticsId(wrokOrderId);
    }
}